package com.example.springtest;

import lombok.extern.slf4j.Slf4j;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Author: HuoYongZhuang
 * @create 2022/11/11
 */

@Slf4j
@Component
public class Component1 {


    @EventListener
    public void aaa(UserRegisteredEvent event) {
        System.out.println("发送短信");

    }

}
